//
//  MyInvestViewCell.m
//  TenThousand
//
//  Created by 我的 on 16/6/21.
//  Copyright © 2016年 baixue. All rights reserved.
//

#import "MyInvestViewCell.h"

@implementation MyInvestViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

//cell赋值 // 我的投资
- (void)setDataWithModel:(MyTouziModel *)model{
    NSString *str = @"%";
    _ProjeceName.text = [NSString stringWithFormat:@"%@:%@",model.ProjeceName,model.Code];//项目名称编号
    _Amount.text = [NSString stringWithFormat:@"投资金额:%@元",model.Amount];//金额
    _Tearm.text = [NSString stringWithFormat:@"%@",model.Tearm];//期限
    _interest.text = [NSString stringWithFormat:@"预计收益%.2f",model.profit];//预计收益
    _Sate.text = [NSString stringWithFormat:@"状态:%@",model.Fsate];//状态
    _Rate.text = [NSString stringWithFormat:@"%.2f%@",model.Rate,str];//应收利息
    _AddDate.text = [NSString stringWithFormat:@"%@",model.AddDate];//时间
    
}

//赎回中
- (void)setDataAndModel:(MyTouziModel *)model{
    NSString *str = @"%";
    _ProjeceName.text = [NSString stringWithFormat:@"%@:%@",model.ProjeceName,model.Code];//项目名称编号
    _Amount.text = [NSString stringWithFormat:@"投资金额:%@元",model.Dedit];//金额
    
    
    _Tearm.hidden = YES;//期限
    _interest.text = [NSString stringWithFormat:@"预计收益%.2f",model.CurrentAmount ];//预计收益
    _Sate.hidden = YES;
    _Rate.text = [NSString stringWithFormat:@"%.2f%@",model.Rate,str];//年利率
    _AddDate.text = [NSString stringWithFormat:@"%@",model.AddDate];//时间
}


@end
